export interface CallResult<T> {
  code: number
  message: string
  data?: T
}
export interface PageBean<T> {
  index: number
  size: number
  totalCount: number
  totalPage: number
  list?: T[]
}
/*---------------------登录相关------------------------------------*/
export interface LoginRespBean {
  token: string
  userName: string
  roleId: number
  roleName: string
}
/*---------------------首页相关-------------------------------------*/
export interface IndexDataBean {
  model: string
}
/*---------------------用户相关-------------------------------------*/
export interface UserDataBean {
  userId: number
  userName: string
  phone: string
  bir1: string
  shiChen: string
  bir2: string
  animal: string
  img: string
  sex: number
  homeId: number
  isLeader: number
  orderIndex: number
  relationshipId: string
  organizationId: number
  page: string
  address: string
  note: string
  states: number
  createTime: string
  createBy: number
  updateTime: string
  updateBy: number
}
export interface UserHomeBean {
  homeId: 0
  homeName: string
}
export interface UserIndexHomeListBean {
  userId: number
  homeName: string
  animal: string
  organizationId: number
  organizationName: string
  families: string
}
/*---------------------设备----------------------------------------*/
export interface DeviceInitListBean {
  id: string
  pkg: string
  versionName: string
  product: string
  model: string
  device: string
  osVersion: string
  updateTime: string
}
export interface DeviceSelectorListBean {
  listPkg: string[]
  listProduct: string[]
  listSysVersion: string[]
}
/*---------------------接口管理-------------------------------------*/
export interface ApiListBean{
  url:string
  name:string
  today:number
  total:number
}
/*---------------------版本更新----------------------------------------*/
export interface PkgListBean {
  id: number
  pkg: string
  name: string
  version: string
  icon: string
}
export interface PkgDetailBean {
  icon: string
  name: string
  version: string
  pkg: string
  list: AppVersionListBean[]
}
export interface AppVersionListBean {
  id: number
  pkg: string
  name:string
  icon:string
  version: string
  code: number
  description: string
  url: string
  fileSize: string
  isForce: number
  state: number
  downloadCount: number
  createTime: string
}

export interface PkgApkUploadResBean {
  success: boolean
  packageName: string
  appName:string,
  versionCode: number
  versionName: string
  fileSize: string
  icon:string
  url: string
}
/*---------------------个人中心----------------------------------------*/
export interface UserInfoBean {
  userId: number
  userName: string
  phone: string
  headImg: string
  sex: number
}
/*---------------------其他----------------------------------------*/
export interface CalendarDataBean {
  year: number
  month: number
  day: number
  lunDay: string
  lunYm: string
}

export interface Dictionary {
  id: number
  name: string
}
